from numpy import *

list1 = [1, 2, 3]
list2 = [4, 5, 6]
list3 = list1 + list2  # merge list
# print list3

# array
array1 = array(list1)
array2 = array(list2)
array3 = array1 + array2  # same index add
# print array3

mat1 = mat([list1])
# mat2 = mat(list2)
# print mat1*mat2     # error (1,3) should multi (3,1)
mat3 = mat([[4], [5], [6]])
print mat1 * mat3
